package main

import (
	"fmt"
	"gitee.com/zzoe/tcpgate/cmd"
)

func main() {
	defer printErr()

	cmd.Execute()
}

func printErr() {
	if err, ok := recover().(error); ok && err != nil {
		fmt.Println(err)
	}
}
